package com.checker.designPattern.creation.factory;

public class SimpleFactory {

    public TestObject createObject(String type){
        switch (type){
            case "A":
                return new ObjectA("ObjectA");
            case "B":
                return new ObjectB("ObjectB");
            default:
                return null;
        }
    }

}
